package com.second.hand.trading.server.service.impl;


import com.second.hand.trading.server.dao.UserMapper;
import com.second.hand.trading.server.domain.User;
import com.second.hand.trading.server.service.UserDemoService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceDemoImpl implements UserDemoService {
    private final UserMapper userMapper;

    public UserServiceDemoImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User selectByAccountNumber(String accountNumber) {
        return userMapper.selectByAccountNumber(accountNumber);
    }
}
